{extend name=".././view/create.html" /}
{block name="jscss"}
{/block}
{block name="form"}
<form class="layui-form layui-form-pane" lay-filter="myform">
	<div class="layui-form-item">
		<label for="title" class="layui-form-label">
			荣誉册标题
		</label>
		<div class="layui-input-block">
			<input type="text" id="title" name="title" autocomplete="off" class="layui-input " value="{$list.data.title|default=''}" placeholder="1-100个字符">
		</div>
	</div>
	<div class="layui-form-item">
		<label for="category_id" class="layui-form-label" style="height: 100%">
			<span class="x-red">*</span>荣誉类型
		</label>
		<div class="layui-input-block">
			<select name="category_id" id="category_id">
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label for="fzschool_id" class="layui-form-label">
			<span class="x-red">*</span>颁奖单位
		</label>
		<div class="layui-input-block">
			<select name="fzschool_id" id="fzschool_id">
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label for="fzshijian" class="layui-form-label">
			<span class="x-red">*</span>获奖时间
		</label>
		<div class="layui-input-block">
			<input type="text" id="fzshijian" name="fzshijian" lay-verify="required" autocomplete="off" class="layui-input " value="{$list.data.fzshijian|default=''}" placeholder="获奖时间">
		</div>
	</div>
	<div class="layui-form-item" style="text-align: right;">
		<button class="layui-btn" lay-filter="mysubmit" lay-submit="">
			{$list.set.butname}
		</button>
	</div>
</form>
{/block}
{block name="myjs"}
<script>
// 日期控件
layui.use(['laydate', 'createInput'], function() {
	var laydate = layui.laydate,
	cInput = layui.createInput;

	cInput.categorySelect('category_id', 114, "{$list.data.category_id|default=''}");
	cInput.schoolSelect('fzschool_id', '区级', '其它级', "{$list.data.fzschool_id|default=''}");

	//执行一个laydate实例
	laydate.render({
		elem: '#fzshijian', //指定元素
		trigger: 'click' //采用click弹出
	});

});

</script>
{/block}
